package GUI;

import java.awt.event.ActionListener;

import javax.swing.JButton;

import java.awt.SystemColor;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;

/**
 * The Class CustomerRelationsGUI.
 * Boundary for the customer relations employee activities.
 */
public class CustomerRelationsGUI extends AbstractPanelGUI {

	/** The button register new client. */
	private JButton btnRegisterNewClient;
	
	/** The button register clients. */
	private JButton btnRegisterClients;
	/**
	 * Create the panel.
	 */
	public CustomerRelationsGUI() {
		
		setBackground(SystemColor.info);
		initialize();
		
	}
	
	/* (non-Javadoc)
	 * @see GUI.AbstractPanelGUI#initialize()
	 */
	public void initialize()
	{
		setLayout(null);
		setSize(Width,Height);
		
		btnRegisterNewClient = new JButton("Register new client");
		btnRegisterNewClient.setForeground(new Color(0, 0, 0));
		btnRegisterNewClient.setFont(new Font("Tahoma", Font.PLAIN, 11));
		btnRegisterNewClient.setBounds(172, 97, 151, 41);
		add(btnRegisterNewClient);
		
		JLabel lblManualClientRegisteration = new JLabel("Manual client registeration:");
		lblManualClientRegisteration.setForeground(new Color(0, 0, 0));
		lblManualClientRegisteration.setFont(new Font("Tahoma", Font.PLAIN, 14));
		lblManualClientRegisteration.setBounds(164, 60, 167, 26);
		add(lblManualClientRegisteration);
		
		JLabel lblRegisterPotentialClientsautomatic = new JLabel("Register potential clients(Automatic):");
		lblRegisterPotentialClientsautomatic.setFont(new Font("Tahoma", Font.PLAIN, 14));
		lblRegisterPotentialClientsautomatic.setBounds(133, 191, 242, 26);
		add(lblRegisterPotentialClientsautomatic);
		
		btnRegisterClients = new JButton("Register clients");
		btnRegisterClients.setForeground(new Color(0, 0, 0));
		btnRegisterClients.setFont(new Font("Tahoma", Font.PLAIN, 11));
		btnRegisterClients.setBounds(172, 233, 151, 41);
		add(btnRegisterClients);
	}
	
	/**
	 * Adds action listener to the register new client button.
	 *
	 * @param listener the listener
	 */
	public void addRegisterNewClientActionListener(ActionListener listener)
	{
		btnRegisterNewClient.addActionListener(listener);
	}
	
	/**
	 * Adds action listener to the register clients button.
	 *
	 * @param listener the listener
	 */
	public void addRegisterClientsActionListener(ActionListener listener)
	{
		btnRegisterClients.addActionListener(listener);
	}
}
